import Vue from "vue"
import ElementUI from "element-ui"
import "element-ui/lib/theme-chalk/index.css"
import App from "./App.vue"
import router from "./router"
import store from "./store"
import "@/assets/css/layout.scss"
import components from "@/components"

Vue.config.productionTip = false
Vue.use(ElementUI)

components.forEach(component => {
  Vue.component(component.name, component)
})

window.H = {
  hook: new Vue(),
  slideHistory: [],
  slideIndex: 0,
}

new Vue({
  router,
  store,
  render: h => h(App),
}).$mount("#app")
